package com.sirius.common.utils.model;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * @author Surging
 * @version 1.0
 * @ClassName TestVo
 * @date 2022/1/17 16:53
 * @desc
 */
@Data
@EqualsAndHashCode(callSuper = false)
public class TestVo {

    @ApiModelProperty(value = "用户名称", required = true)
    @NotNull(message = "用户名称不能为空")
    @NotEmpty(message = "用户名称不能为空")
    @NotBlank(message = "用户名称不能为空")
    private String username;

    @ApiModelProperty(value = "用户密码", required = true)
    @NotNull(message = "用户密码不能为空")
    @NotEmpty(message = "用户密码不能为空")
    @NotBlank(message = "用户密码不能为空")
    private String password;

    public TestVo(String username, String password) {
        this.username = username;
        this.password = password;
    }
}
